package com.gkoudai.open.platform.entry;

import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.Data;

import java.io.Serializable;

/**
 * @author wangqi
 * @date 2025-02-19 17:21
 */
@Data
public class IndicatorsDetailDataRequestBody implements Serializable {
    private String index;
    private String startTime;
    private String endTime;
    private String startIndex;
    private String count;

    public static IndicatorsDetailDataRequestBody create(MetricInformation metricInformation) {
        IndicatorsDetailDataRequestBody indicatorsDetailDataRequestBody = new IndicatorsDetailDataRequestBody();
        indicatorsDetailDataRequestBody.setIndex(metricInformation.getIndexCode());
        return indicatorsDetailDataRequestBody;
    }
}
